<%= simple_form_for(@user.becomes(Cms::User), html: {autocomplete: 'off'}) do |f| %>
    <%=  page_title_with_buttons(f, 'save_buttons') %>
    <%= render layout: 'main_with_sidebar' do %>
        <%= render :partial => 'user_fields', :locals => {:f => f} unless @change_password %>
        <%= render :partial => 'password', :locals => {:f => f} if @user.new_record? %>
        <%= f.association :groups, as: :check_boxes %>
    <% end %>
    <%= bottom_buttons(f, 'save_buttons') %>
<% end %>
